<template>
  <div>
    新闻详情页{{ $route.params.id }}-{{ $route.name }}
  </div>
</template>

<script lang="ts" setup>
  const route = useRoute();
  console.log("当前路由：",route.name);
  console.log("文字id：",route.params.id);
</script>

<style>

</style>